package com.cssw.fyzb.busi.service.acct;

import com.cssw.fyzb.core.dao.acct.GzAddPriceDao;
import com.cssw.fyzb.core.model.dodb.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class GzAddPriceServiceImpl implements GzAddPriceService{

    @Autowired
    private GzAddPriceDao gzAddPriceDao;

    @Override
    public GzAddPrice getTodayGzAddPrice(Long userId, String taskType) {
        return gzAddPriceDao.getTodayGzAddPrice(userId, taskType);
    }

    @Override
    public void updateGzAddPrice(Long id, BigDecimal price) {
        gzAddPriceDao.updateGzAddPrice(id, price);
    }

    @Override
    public Long addGzAddPrice(Long userId, BigDecimal price, String taskType, String tradeId, String itemName) {
        return gzAddPriceDao.save(userId,price,taskType,tradeId,itemName);
    }
}
